package com.lingyuan.oms.remote;

import com.lingyuan.common.core.domain.R;
import com.lingyuan.common.core.domain.vo.sms.ComputeVo;
import com.lingyuan.common.core.domain.vo.sms.CouponMemberVo;
import com.lingyuan.common.core.domain.vo.sms.CouponSkuIdsVo;
import com.lingyuan.common.core.domain.vo.sms.UpdateCouponHistoryParam;
import com.lingyuan.common.core.domain.vo.ums.MemberAddressVo;
import com.lingyuan.common.core.domain.vo.ums.MemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("lingyuan-discounts")
public interface CouponRemoteService {
    /**
     * 计算价格
     * @return
     */
    @PostMapping("coupon/findCouponSkuIdsVo")
    public R<CouponSkuIdsVo> findCouponSkuIdsVo(@RequestBody ComputeVo computeVo);
    /**
     * 用户端查询自己的优惠券列表
     */
    @GetMapping("coupon/findSkuMinPrice/{skuIds}")
    public R<List<CouponMemberVo>> findSkuMinPrice(@PathVariable("skuIds") String skuIds);
    /**
     * 使用优惠券
     * @param param
     * @return
     */
    @PutMapping("history/updHistoryStatus")
    public R updHistoryStatus(@RequestBody UpdateCouponHistoryParam param);
}
